package cn.stylefeng.guns.dao.entity;

import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author quspacedraon
 * @since 2024-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rule_level")
@ApiModel(value = "RuleLevel对象", description = "")
public class RuleLevel extends BusinessBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "rule_level_id", type = IdType.ASSIGN_ID)
    private String ruleLevelId;

    @ApiModelProperty(value = "规则id")
    private String ruleId;

    @ApiModelProperty(value = "开始")
    private Integer minCount;

    @ApiModelProperty(value = "最大数")
    private Integer maxCount;

    @ApiModelProperty(value = "返利金额")
    private BigDecimal rebateAmount;
    @ApiModelProperty(value = "删除标记：Y-已删除，N-未删除")
    @TableField(
            value = "del_flag",
            fill = FieldFill.INSERT
    )
    @ChineseDescription("删除标记（Y-已删除，N-未删除）")
    @TableLogic(value = "N", delval = "Y")
    private String delFlag;
}
